/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	GlbCloud			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_01_29			*/
/*	File:		MrUtl.h				*/
/********************************************************/

#ifndef _MRUTL_H
#define	_MRUTL_H

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "MrGlobal.h"
#include <arpa/inet.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>

#define	MR_DAYTIME			32

void MrLocalDay(char* pszDay);
void MrLocalTime(char* pszTime);
void MrLocalDayTime(char* pszTime);

void MrFree(void** ppFree);
void* MrMalloc(ULONG ulSize);
void MrReset(void* pReset, ULONG ulSize);

void MrFork();
char* MrLocalPath(char* pszEnv);
void MrPacketDisplay(UCHAR* puszPacket, int iLength);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* _MRUTL_H */
